﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="member.aspx.cs" Inherits="WebSite.admin.member.member" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
        <script src="../js/common.js" type="text/javascript"></script> 
    <script  language="javascript" type="text/javascript">
        function popModelWindow(href) {
           
                X('Window1').box_show(href, '会员编辑');

        }
    </script>
</head>
<body>
    <form id="form2" runat="server">


       <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="商品列表"  ShowHeader="true" >
              <Items>

            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">

             <Items>
               <ext:Label ID="Label1"  Width="60px"    runat="server" Text="&nbsp;&nbsp;会员名称："></ext:Label>
            <ext:TextBox runat="server" ID="txtLoginName"   MaxLength="100" Label="会员名称" ></ext:TextBox>
          <ext:Label ID="Label2"  Width="60px"    runat="server" Text="&nbsp;&nbsp;卡号："></ext:Label>
            <ext:TextBox runat="server" ID="txtCardCode"   MaxLength="100" Label="卡号" ></ext:TextBox>
         <ext:Label ID="Label3"  Width="60px"    runat="server" Text="&nbsp;&nbsp;电话号码："></ext:Label>
            <ext:TextBox runat="server" ID="txtTelPhone"   MaxLength="100" Label="电话号码" ></ext:TextBox>

            <ext:Label ID="lblKeywords"  Width="60px"    runat="server" Text="&nbsp;&nbsp;关键字："></ext:Label>
            <ext:TextBox runat="server" ID="txtKeywords"   MaxLength="100" Label="关键字" ></ext:TextBox>
                   <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                     OnClick="btnSearch_Click"></ext:Button>
                  </Items>
         </ext:Panel>

     </Items>
     
   </ext:SimpleForm>

   <ext:Panel ID="Panel8" ShowBorder="True" ShowHeader="false" BoxFlex="1"  CssClass="x-form-item"  Layout="Fit"
                runat="server">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                        <Items>
                   <ext:Button ID="btnBrachDeleted" runat="server" Text="批量删除"  OnClick="btnBrachDeleted_Click1"
                    ConfirmTarget="self" ConfirmText="确定要删除选中的商品吗？" >
                 </ext:Button>
                  <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                            </ext:ToolbarSeparator>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
    </Items>
    </ext:Panel>
         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  
           CssClass="x-form-item"  Height="418px"  AllowPaging="true" 
           SortColumn="memberlogin" SortDirection="ASC"     OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" 
           runat="server" EnableCheckBoxSelect="True"   AllowSorting="true"    IsDatabasePaging="true" 
                        DataKeyNames="memberid" OnSort="Grid1_Sort" 
           EnableRowNumber="True" onrowdatabound="Grid1_RowDataBound">

        <Columns>
        
                 <ext:BoundField Width="200px" ColumnID="memberlogin" SortField="memberlogin" DataField="memberlogin" DataFormatString="{0}"
                HeaderText="用户名" />
            <ext:BoundField Width="100px" ColumnID="membername" SortField="membername" DataField="membername" DataFormatString="{0}"
                HeaderText="收件人姓名" />
           <ext:TemplateField Width="180px" SortField="cardcode" HeaderText="操作">
                <ItemTemplate>
                     <a href="mailto:<%# Eval("email")%>"><%# Eval("email")%></a> 
                </ItemTemplate>
            </ext:TemplateField>
           <ext:BoundField Width="100px" ColumnID="registerTime" SortField="registerTime" DataField="registerTime" DataFormatString="{0}"
                HeaderText="注册时间" />
           <ext:BoundField Width="100px" ColumnID="money" SortField="money"  DataField="money" DataFormatString="{0}"
                HeaderText="账户余额" />
            <ext:BoundField Width="200px"  DataFormatString="{0}"
                HeaderText="礼品卡" />
          
          <ext:TemplateField Width="180px" SortField="" HeaderText="操作">
                <ItemTemplate>
                      <a href="#" onclick="openNewTab('MemberEdit','/admin/member/member_add.aspx?mid=<%# Eval("memberid") %>','会员编辑')",  title="编辑">[编辑]</a>
                      <a title="收货地址" style="display:none" href="users_address.aspx?mid=<%# Eval("memberid") %>">[收货地址]</a> 
                      <a title="查看账目明细" style="display:none" href="account_log.aspx?mid=<%# Eval("memberid") %>">[账目]</a> 
                       <a href="#" onclick="openNewTab('MemberOrder','/admin/order/order.aspx?mid=<%# Eval("memberid") %>','查看订单','')"; title="查看订单">[订单]</a>
                     <a href="member.aspx?action=del&amp;mid=<%# Eval("memberid") %>"  onclick="return confirm('您确定要删除此会员吗？');" title="删除">[删除]</a>
                </ItemTemplate>
            </ext:TemplateField>
            

        </Columns>
    </ext:Grid>

    </form>
</body>
</html>


